package com.my.createtype.singletion.staticstuff;

import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
/*
 * Anonymous inner classes 
 */
public class FrameClassStuff extends Frame {

	public FrameClassStuff() {
		this.setSize(400, 300);
		this.setVisible(true);
		
		this.addWindowListener(new WindowAdapter() {

			/* (non-Javadoc)
			 * @see java.awt.event.WindowAdapter#windowClosed(java.awt.event.WindowEvent)
			 */
			@Override
			public void windowClosing(WindowEvent arg0) {
				System.exit(0);
			}
			
		});
	}

	public static void main(String[] args) {
		new FrameClassStuff();

	}

}
